package com.ruoyi.common.exception.data;

import com.ruoyi.common.exception.base.BaseException;

/**
 * @Classname EntityDataUnusableException
 * @Author: sunluquan
 * @Date: 2022/3/16 15:52
 * @Description TODO
 * 实体数据不可用异常
 */
public class EntityDataUnusableException extends BaseException {

    public EntityDataUnusableException(String defaultMessage , String code, Object ... args) {
        super("data", code, args, defaultMessage);
    }

    public EntityDataUnusableException(Object entity) {
        this(null , "entity.data.unusable.exception", entity);
    }

    public EntityDataUnusableException(String defaultMessage) {
        this(defaultMessage,null);
    }
}
